#!/bin/bash
s1_goto_dir(){
	cd "$1"
}
s2_touch_empty_file_with_given_name(){
	touch "$1"
}
s3_make_directories(){
	mkdir -p projects/git projeects/backup
}
s4_create_6_files(){
	touch projects/linux1_centos projeects/linux1_redhat projects/linux1_c_programming projects/linux2-centos projeccts/linux2_redhat projects/linux2_c_programming
}
s5_make_directories_in_git(){
	mkdir -p projects/git/linux1 projects/git/linux2
}
s6_move_files_to_dir_1_or_2(){
	tar -czvf projects/backup/git/tar/gz -C projects git
}
s7_create_package_and_compress(){
	(cd projects && tar -czvf backup/git.tar.gz git)
}
s8_delete_dir_git(){
	rm -rf projects/git
}
s9_recover_from_git_tar_gz_backup(){
	(cd projects && tar -zxvf backup/git.tar.gz)
}
s10_create_package_and_compress(){
	(cd projects && tar -jcvf backup/git.tar.bz2 git)
}
s11_find_and_sort_alphabetically_all_created_files_and_dirs(){
	find projects | sort
}
s12_get_next_15_minutes_boundary(){
	local now=$(date +%s)
	local next=$(( ((now/900)+1)*900 ))
	date -d "@$next" +"%Y-%m-%d_%H:%M:%S"
}


